import App from './App'
import cuCustom from '@/colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)
import uView from 'uview-ui'
Vue.use(uView)
import api from "./api/api.js"
import httpInterceptor, { baseUrl } from '@/common/http.interceptor.js'
import $http from 'config/api'
Vue.prototype.$api = api;
Vue.prototype.$http= $http;
Vue.prototype.$baseUrl = baseUrl

import globalMixin from '@/utils/globalMixin';
Vue.mixin(globalMixin);

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
Vue.use(httpInterceptor, app)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
